@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="divisionInfoForm">

            <input type="hidden" id="id" name="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="名称" value="${item.name}" underline="true"/>
                    <#input id="sort" name="段位顺序" value="${item.sort}" underline="true"/>
                    <#input id="star" name="段位所需星星数量" value="${item.star}" underline="true"/>
                    <#input id="exp" name="每场胜利经验值" value="${item.exp}" />
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">头像</label>
                        <div class="col-sm-9">
                            <div class="file-item" style="display: inline-block;">
                                <img id="headImage" style="height: 100px;width: 100px;" src="${ctxPath}${item.img}">
                                <div class="info" id="imageName"></div>
                                <input id="img" name="img" type="hidden" value="${item.img}">
                            </div>
                            <div id="filePicker" style="display: inline;top:-20px">选择头像</div>
                            <div id="deleteImage" class="btn btn-danger" style="position: absolute;height: 32%;top:1px;margin-left: 5px;">取消</div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#input id="flag" name="入场所需旗帜数" value="${item.flag}" underline="true"/>
                    <#input id="winflag" name="胜利所得旗帜数" underline="true" value="${item.winflag}"/>
                    <#input id="remarks" name="备注" value="${item.remarks}" />
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="DivisionInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="DivisionInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/flagGlory/division/division_info.js"></script>
@}
